-- GENERATED SPELL FOR [Skeletal Smith] --


function spell0_16193(pUnit, Event) --@Crush Armor,n/a--
pUnit:FullCastSpellOnTarget(33661,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16193', 30319, 1)
end

function spell1_16193(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16193', 5326, 1)
end

function Sorts_16193(pUnit, Event)
local choix_sorts_16193 = math.random(0, 1)
if choix_sorts_16193 == 0 then
pUnit:RegisterEvent('spell0_16193', 1, 1)
end
if choix_sorts_16193 == 1 then
pUnit:RegisterEvent('spell1_16193', 1, 1)
end
end

function mob16193_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16193', math.random(1500, 3000), 1)
end

function mob16193_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16193_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16193_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16193, 1, 'mob16193_Action')
RegisterUnitEvent(16193, 2, 'mob16193_Leave')
RegisterUnitEvent(16193, 3, 'mob16193_Kill')
RegisterUnitEvent(16193, 4, 'mob16193_Die')
